<%@page import="java.util.List"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<div id="content" class="col-lg-10 col-sm-10">
    <!-- content starts -->
    <div>
        <ul class="breadcrumb">
            <li>
                <a href="#">Home</a>
            </li>
            <li>
                <a href="#">Add Question</a>
            </li>
        </ul>
    </div>
    <form action="ViewTestQuestionListByTopic.do" method="post">
      <div class="form-group">
                        <label for="exampleInputEmail1">topic</label>
                        <select name="topic">
                            <c:forEach var="topic" items="${sessionScope.li_topic_by_subid}">
                                <option value="${topic.id}">${topic.name}</option>
                            </c:forEach>
                        </select>
                         
</div>
        <input type="submit" value="go">
        </form>

   
    
    <!--<form role="form" action="AddTestQuestionAction.do" method="post">-->
     <input type="hidden" id="total_que" value="${sessionScope.total_que}">
    <c:forEach var="question" items="${sessionScope.page_list_question_test}">
        
       
        
 <div class="row">
        <div class="box col-md-12">
            <div class="box-inner">
                <div class="box-header well" data-original-title="">
                    <h2><i class="glyphicon glyphicon-question-sign"></i> Question ${i}</h2>

                    <div class="box-icon">
                          
                        
                 <button class="label-success label label-default add_button" id="add_${question.id}">Add</button>
                 <button  style="display: none" class="label-success label label-default remove_button" id="remove_${question.id}">Remove</button>
                        
                    </div>
                </div>
                <div class="box-content">
                    
                    <div class="row">
                        <table>
                            <tr><td><h5><strong>Topic :</strong></h5></td><td>${question.topic.name}</td></tr>
                            <tr><td><h5><strong>Question :</strong></h5></td><td>${question.qdescription}</td></tr>
                            <tr><td><h5><strong>Solution :</strong></h5></td><td>${question.solution}</td></tr>
                            <tr><td><h5><strong>Answer :</strong></h5></td><td>${question.answer}</td></tr>
                        </table>
                </div>
                    
                </div>
            </div>
        </div>
        <!--/span-->
    </div>
</c:forEach>
    
    <div class="form-group">
                            <!--<button type="submit" class="btn btn-default add_test_question">Add Question</button>-->
       </div>
    <!--</form>-->
         <ul class="pagination pagination-centered">
                      <c:forEach begin="1" end="${sessionScope.pagelink}" var="i">
                            <li class="active">
                                <!--<a href="ViewTestQuestionAction.do?id=<c:out value="${i}"></c:out>">${i}</a>-->
                                 <a href="PageAction.do?pageid=${i}&action=test_question">${i}</a> 
                                </li>
                        </c:forEach>
                                </ul>
</div>